org.eclipse.vtp.desktop.projects.core.actions
Class DeleteMediaResourceActionFilter

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.actions.DeleteMediaResourceActionFilter
All Implemented Interfaces:
IProvisioningActionItemFilter

public class DeleteMediaResourceActionFilter
extends java.lang.Object
implements IProvisioningActionItemFilter

Identifies whether or not the DeleteMediaResourceAction is applicable to the current model selection. If the selection is a Media Resource element the action will be present and enabled. Otherwise, the action will not be disabled and not be visible.

Version:
1.0
Author:
Trip

Constructor Summary
DeleteMediaResourceActionFilter()
          Creates a new DeleteMediaResourceActionFilter instance with default values.
 
Method Summary
 int appliesTo(IProvisioningModelSelection selection)
          Determines the visiblity state of the associated action item based on the given user selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteMediaResourceActionFilter

public DeleteMediaResourceActionFilter()
Creates a new DeleteMediaResourceActionFilter instance with default values.

Method Detail

appliesTo

public int appliesTo(IProvisioningModelSelection selection)
Description copied from interface: IProvisioningActionItemFilter
Determines the visiblity state of the associated action item based on the given user selection.

Specified by:
appliesTo in interface IProvisioningActionItemFilter
Parameters:
selection - The user selection
Returns:
The visibility state of the action item